package com.qianqian.service.service.wxcpapi;

import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;


public class WxCpUserService {

    WxCpRequestService wxCpRequestService;
    public WxCpUserService(WxCpRequestService wxCpRequestService){
        this.wxCpRequestService = wxCpRequestService;
    }

    public JSONObject getUserInfo(String code){
        HashMap<String,String> map = new HashMap<>();
        map.put("code",code);
        return wxCpRequestService.get("user/getuserinfo",map);
    }

}
